<template>
  <div>
    <nav-bar class="navbar">
      <template v-slot:center
        >购物车({{ $store.state.cartList.length }})</template
      >
    </nav-bar>
    <bscroll>
      <cart-list class="cartlist"> </cart-list>
    </bscroll>
    <cart-bottom-bar></cart-bottom-bar>
  </div>
</template>
<script>
import NavBar from "components/commen/navbar/NavBar";
import CartList from "./cartchild/CartList.vue";
import CartBottomBar from "./cartchild/CartBottomBar.vue";
import Bscroll from "components/commen/bscroll/Bscroll";
export default {
  name: "Cart",
  components: {
    Bscroll,
    NavBar,
    CartList,
    CartBottomBar,
  },
};
</script>
<style scoped>
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ff919c;
  color: #fff;
}
.cartlist {
  margin-bottom: 44px;
}
</style>